import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const NengfengKey = 'Nengfeng-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token: string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getNengfengToken() {
  return Cookies.get(NengfengKey)
}
export function setNengfengKey(token: string) {
  return Cookies.set(NengfengKey, token)
}
export function removeNengfengKey() {
  return Cookies.remove(NengfengKey)
}
